import Home from '@app/home'
import List from '@app/project/list'
import Manage from '@app/project/manage'
import Message from '@app/message'
import System from '@app/system'
// import Demo1 from '@app/demo1'
// import Demo2 from '@app/demo2'
import { HomeOutlined, SettingOutlined, FolderOpenOutlined, BellOutlined } from '@ant-design/icons'

let appRouters = [
  {
    name: '主页',
    type: 'item',
    exact: true,
    path: '/home',
    icon: HomeOutlined,
    component: Home,
  },
  {
    name: '项目库管理',
    type: 'subMenu',
    path: '/project',
    icon: FolderOpenOutlined,
    children: [
      {
        name: '所有项目',
        type: 'item',
        exact: true,
        path: '/list',
        component: List,
      },
      {
        name: '项目管理',
        type: 'item',
        exact: false,
        path: '/manage',
        component: Manage,
      },
    ]
  },
  {
    name: '消息通知',
    type: 'item',
    exact: false,
    path: '/message',
    icon: BellOutlined,
    component: Message,
  },
  {
    name: '系统设置',
    type: 'item',
    exact: true,
    path: '/system',
    icon: SettingOutlined,
    component: System,
  },
  // {
  //   name: 'demo1',
  //   type: 'item',
  //   exact: true,
  //   path: '/demo1',
  //   icon: SettingOutlined,
  //   component: Demo1,
  // },
  // {
  //   name: 'demo2',
  //   type: 'item',
  //   exact: true,
  //   path: '/demo2',
  //   icon: SettingOutlined,
  //   component: Demo2,
  // }
]

export {
  appRouters
}